import KoaRouter from 'koa-router'
import * as userController from '../controller/userController'
const router = new KoaRouter()

router.get('/user', userController.getUserList)
router.get('/user/:id', userController.getUser)
router.put('/user', userController.updateUser)
router.post('/user', userController.insertUser)
router.delete('/user/:id', userController.deleteUser)
router.get('/user/resetPassword/:id',userController.resetPassword)
router.post('/user/checkUsername', userController.checkUsername)

export default router
